Synthetic analog-to-digital converter (adc) for legacy twacs meters

ABSTRACT

An electrical meter (M) installed at a facility (F) supplied electrical power by a utility&#39;s (U) electrical distribution system (EDS) utilizes a two-way automatic communications system (TWACS) for receiving messages from the utility sent over the electrical distribution system using the TWACS. An improvement to the meter comprises reconfiguring existing components installed in the meter to function as an analog-to-digital (ADC) converter so to facilitate processing of powerline waveforms (WF) propagated through the electrical distribution system by application of a signal based detection algorithm. This improves detection of signal elements comprising a message sent via the TWACS and by other means and incorporated in the electrical waveforms thereby reducing occurrence of a false synchronization with the message elements so a content of a message is readily ascertained by the meter.

REFERENCE TO RELATED APPLICATIONS

This application is based on, and claims the benefit of, U.S. provisional patent application 62/659,811 filed Apr. 19, 2018, and which is incorporated herein by reference.

BACKGROUND OF THE INVENTION

The invention relates to electrical meters installed at facilities provided electrical power by a utility through an electrical distribution system; and, in particular, to an upgrading of older “legacy” meters used in such systems in which communications between the utility and facility is accomplished using a two-way automatic communications system, or TWACS®.

In a TWACS, messages transmitted between a utility and a using facility comprise signal elements which are incorporated in the electrical waveforms propagated through the distribution system. The signal elements are detected at threshold-crossing points in the waveform and are processed to determine the contents of a message. Over time, as electrical meters have developed and been improved, new electronic components and software have been incorporated into the meters to improve message synchronization and the reliability of element detection. One of these improvements has been the incorporation of an analog-to-digital converter (ADC), which facilitates use of more sophisticated signal-based TWACS detectors that employ features such as matched-filtering, spectral analysis, as well as others techniques known in the art.

Older, legacy electric meters do not have an analog-to-digital converter (ADC), the lack of which means that actual powerline waveforms cannot be observed by the meter. Rather, legacy meters instead detect TWACS signals by use of a threshold-crossing algorithm in which a threshold level is set by a digital-to-analog converter (DAC) installed in the meter and controlled by a microprocessor also installed in the meter. The crossing of the threshold by a powerline voltage waveform is detected by a level comparator circuit within the meter, with the time at which the threshold is crossed being observed by the microprocessor relative to a clock within the unit. In effect, the presence of TWACS signals is determined indirectly; i.e., by means of heuristics applied to the observed elapsed time between crossings of various levels.

BRIEF SUMMARY OF THE INVENTION

This present invention is an improvement to electrical meters and involves reconfiguring the existing microprocessor, DAC, comparator, clock, and ancillary circuitry within a legacy TWACS meter to function as a “rudimentary” ADC by which powerline waveforms can now be directly observed. Doing so enables the application of sophisticated signal-based detection algorithms thereby improving reliability in detecting TWACS and other signals and reducing the probability of false synchronizations. Accordingly, these waveforms are observed with sufficient fidelity for TWACS detection. Implementation of the invention requires firmware changes but no hardware changes. The firmware changes for accomplishing meter reconfiguration are downloaded to legacy meters using conventional TWACS messaging techniques.

The ability to reconfigure legacy TWACS meters in accordance with the invention has the important advantage of a utility not having to incur the cost of replacing these meters while insuring the legacy meters can reliably detect and process TWACS communications transmitted through an electrical distribution system of the utility.

Other objects and features will be in part apparent and in part pointed out hereinafter.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

The objects of the invention are achieved as set forth in the illustrative embodiments shown in the drawings which form a part of the specification.

FIG. 1 is a simplified representation of a utility's electrical distribution system with a meter installed at a user's facility;

FIG. 2 is a block diagram of signal detection circuitry in a legacy TWACS meter;

FIG. 3 is a representation of an electrical waveform propagated through a utility's electrical distribution network with TWACS message elements occurring at zero-crossings of the waveform; and,

FIGS. 4 and 5 represent various TWACS signal reconstructions vs. a measured powerline signal, the waveforms shown in these Figs. not having been passed through a lowpass filter of a meter.

DETAILED DESCRIPTION OF THE INVENTION

The following detailed description illustrates the invention by way of example and not by way of limitation. This description clearly enables one skilled in the art to make and use the invention, and describes several embodiments, adaptations, variations, alternatives and uses of the invention, including what is presently believed to be the best mode of carrying out the invention. Additionally, it is to be understood that the invention is not limited in its application to the details of construction and the arrangement of components set forth in the following description or illustrated in the drawings. The invention is capable of other embodiments and of being practiced or carried out in various ways. Also, it will be understood that the phraseology and terminology used herein is for the purpose of description and should not be regarded as limiting.

Referring to FIG. 1, a utility U provides electrical power to a user's facility F through an electrical distribution system EDS. An electric meter M installed at the facility measures the amount of electricity used at the facility. As is known in the art, meter M may also be a TWACS meter used for processing messages transmitted between utility U and facility F. As noted above, a TWACS message is of comprised signal elements E incorporated in electrical waveforms WF propagated through electrical distribution system EDS. These waveforms are substantially sinusoidal waveforms, as shown in FIG. 1, with the TWACS signal elements E imposed on the propagated waveform near zero-crossing points of the waveform. Previously, in “legacy” TWACS meters, these signal elements E were detected at zero-crossing points in waveform WF with the detected signal elements then being processed to determine the contents of the TWACS message.

Referring to FIG. 2, legacy meters M include automatic gain control AGC circuitry incorporated within a buffer and signal conditioning module BSC of the meter. The AGC ensures that peak positive and negative extremes of the powerline waveform WF, as produced at the output of a lowpass filter LPF, fall strictly within a range compatible with an output from a digital-to-analog converter DAC. The lowpass filter supplies, as an output, a voltage to a Vin input of a comparator C.

A microprocessor μP supplies, as an output, a digital word whose contents correspond to a desired voltage level, the crossing of which is to be observed. This digital word is converted in the DAC to a voltage level applied to a Vref input of comparator C. If the powerline voltage representation at the Vin input to comparator C is less than the desired voltage level the Vref input of the comparator, then the output of the comparator is a logic “zero”. However, if the powerline voltage at input Vin is greater than the desired voltage level at input Vref, then the comparator output is a logic “one”. Accordingly, the crossing of the waveform from “less than the desired voltage” to “greater than the desired voltage” is detected by observation of the output of comparator C transitioning from “zero” to “one”, and vice-versa.

Within the microprocessor is a counter CTR whose count value increments in response to pulses received from a clock CK. By comparing the counter values of counter CTR between various threshold crossings, microprocessor μP determines the elapsed time between threshold crossings, and various heuristic algorithms are applied to this elapsed time value between the crossings to detect the presence of TWACS signals.

The improvement of the present invention requires no changes to the hardware described above, only firmware changes which alter the manner in which the hardware is utilized. Those skilled in the art will understand that the firmware changes for accomplishing meter reconfiguration are downloaded to TWACS legacy meters using conventional TWACS messaging techniques. This ability to reconfigure legacy TWACS meters M currently installed at facilities F has the important advantage of allowing utility U to not have to incur the cost of replacing these meters while insuring the meters can reliably detect and process TWACS communications.

In accordance with the invention, the AGC circuitry within meter M operates without modification to ensure that the peak positive and negative extremes of the powerline waveform representation at the output of the filter LPF fall within a range compatible with the DAC. The DAC is now configured such that its output range spans somewhat less than the extremes of the filter's output. That is, the output from the DAC, when its input is a digital “minimum value”, is a value dependent upon a numerical representation utilized by the DAC and is somewhat greater than the filter's output when the powerline waveform is at its negative peak. And, the output from the DAC, when its input is a digital “maximum value”, is also a value dependent upon the numerical representation utilized by the DAC and is somewhat less than filter LPFs output when the powerline waveform is at its positive peak.

The configuration of meter M of the present invention depends significantly upon the frequency of clock CK, the speed of microprocessor μP, the settling time of the DAC, and the response time of comparator C.

In one embodiment of the invention, an ideal case where the performances of the clock, microprocessor, the DAC, and comparator are all sufficiently high, microprocessor μP and the DAC combine to perform a successive-approximation implementation, such as is well-known in the art. At the start of a conversion process, microprocessor μP sends a digital value of “one-half of full-scale” to the DAC; which, in turn, sends a corresponding “half-scale” analog output to the “Vref” input of comparator C. At the next cycle of clock CK, microprocessor μP examines the value of the output from comparator C. If this output is a logic “one”, indicating that “Vin>Vref”, then the microprocessor adjusts the value of the digital word sent to the DAC upwardly by “one-quarter of full-scale”. Conversely, if the comparator output is a logic “zero”, indicating that “Vin<Vref”, then microprocessor μP adjusts the value of the digital word sent to the DAC downward by “one-quarter of full-scale”. In addition, the value of the most significant bit (MSB) of a digital register (not shown) within the microprocessor is set to the value of the comparator's output.

This process is repeated, each time reducing the adjustment to the digital word sent to the DAC to one-half the previous adjustment, and each time setting one more bit in the microprocessor's digital register, working sequentially from the MSB toward the least significant bit (LSB) until there are no more bits in the digital word sent to the DAC left to adjust. The final value of the microprocessor's digital register is now the digital value of a rudimentary ADC that comprises the present invention. Microprocessor μP also records the counter value at the time the above described process is completed.

Now, the process starts over again, ideally constrained such that the time between conversions is substantially constant. The output of this process is a plurality of “level versus counter value” pairs. The counter values are analogous to time, so the pairs represent “level versus time”. The overall result of the process described above is implementation of a successive approximation ADC, similar to those well-known in the art, but applied in a novel fashion to the unique circumstances within a legacy TWACS meter.

In a legacy TWACS meter, one or more of the clock's, microprocessor's, DACs, or comparator's performance may be insufficient to allow implementation of the process described above. For example, the settling time of the DAC may be as high as 10 μsec, the frequency of the clock as low as 500 kHz, and performance of the microprocessor as slow as 1 million operations per second (MIPS). Under these circumstances, each adjustment by microprocessor μP to the DAC will require several microseconds (μsec) for execution of the algorithm within the microprocessor, 2 μsec for the pulse from clock CK, plus 10 μsec for the settling time of the DAC. In a TWACS meter M, the DAC generally supports 8-bit inputs, or 8 successive approximation steps; so, even without accounting for the unknown execution time within the microprocessor, each analog-to-digital conversion would require at least 96 μsec. This results in a “best-case” maximum sampling frequency of slightly more than 10 kHz; again, without accounting for the microprocessor's execution time.

For those instances in which the successive approximation process described above cannot be readily implemented, a second embodiment of the invention involves an alternate rudimentary ADC implementation as described below.

In this second embodiment, at startup, microprocessor μP selects a starting value for its digital word output. Typically, but not necessarily, this is a digital “minimum value”. This value is sent to the DAC, which sets its output value accordingly and sends this output value to the Vref input of comparator C. If the output of the comparator is a logic “zero”, indicating that the powerline waveform representation is less than the DAC output, microprocessor μP waits until the powerline waveform representation exceeds the DAC output value, at which time the output of comparator C transitions to logic “one”. The microprocessor then records the counter value at the time of transition, increments the value of the digital word it sends to the DAC, and waits for the next transition of the comparator's output from a logic “zero” to a logic “one”.

Conversely, if the initial output of comparator C is a logic “one”, indicating the powerline waveform representation is greater than the output of the DAC, then microprocessor μP repeatedly increments the value of the digital word it sends to the DAC until such time as the output of the DAC becomes greater than the powerline waveform representation, and the output of comparator C becomes a logic “zero”. Microprocessor μP then waits until the output of comparator C transitions to a logic “one”, at which time the process proceeds as described above.

This sequence is followed until such time as the word sent by the microprocessor is at a digital “maximum value” and the powerline waveform representation crosses the associated threshold. Now, the powerline waveform representation is near its maximum value and the DAC output is also at its maximum value. The procedure is then reversed with microprocessor μP waiting for the output from comparator C to transition from a logic “one” to a logic “zero”, at which point the counter value at the time of transition is recorded and the value of the digital word sent to the DAC is decremented. The microprocessor then waits for the output from the comparator to now transition from a logic “one” to a logic “zero”. At this point, the counter value at the time of the transition is recorded, the value of the digital word sent to the DAC is decremented; and so forth, until the digital word sent to the DAC is at its digital “minimum value”. The procedure then reverses direction yet again.

The result of this process is a plurality of “counter value at which level was crossed versus level” pairs. These counter values are analogous to time; so, in effect, the pairs represent “time versus level”. This is a duality of the function of typical prior art ADCs, whose output is “level versus time”. The present invention converts “time versus level” into “level versus time” by use of a mathematical interpolation. The result is a traditional “level versus time” waveform to which standard signal-based analysis techniques may be applied.

The procedure described above constrains the “time versus level” pairs such that the level values are always either monotonically increasing or monotonically decreasing. If the actual powerline waveform exhibits a behavior that is not monotonically increasing or decreasing, then any such regions of non-monotonic behavior will not be characterized. Once the powerline waveform returns to a monotonic behavior, the procedure will resume proper characterization of the waveform.

For the legacy meter M employed in both described embodiments, the meter configuration is as shown in FIG. 2. Here, the clock frequency is 1 MHz, and the DAC output is 8 bits. The lowpass filter LPF's cutoff frequency is 1200 Hz; so, the majority of TWACS waveform activity is expected to occur below that frequency.

The preferred embodiment is one in which all components exhibit sufficient performance to support the necessary timing requirements with the result being approximately equivalent to a prior art successive-approximation ADC of the same number of bits as exist at the input to the DAC, with commensurate ADC performance.

The second described embodiment requires an additional interpolation step in order to convert its “time versus level” output information to “level versus time” information. Interpolation techniques are well-known in the art, and may include polynomial interpolation (including linear interpolation), spline interpolation, sinc interpolation, trigonometric interpolation, filtering, as well as others. In a prototype of the preferred embodiment, linear interpolation and two forms of 3rd-order polynomial interpolation were investigated. A hybrid interpolation method, utilizing 3rd-order polynomials near the extremes of the powerline waveform and linear interpolation near the zero-crossings of powerline waveform WF, was shown to be very effective for maintaining the fidelity of the powerline waveform in the time domain. This is because for TWACS modulation near a transmitter, attenuation, filtering due to a line transfer function, and dispersion have not yet significantly affected or changed the 60 Hz powerline waveform WF in significant ways, as shown in FIG. 3. In FIG. 3, any sharp or significant changes in the waveform, near zero-crossings, are accommodated for using linear interpolation techniques. Those skilled in the art will understand that the more distant waveform WF propagates away from the transmitter, the less significant these effects become.

For maintaining a fine spectral content of powerline waveform WF in the frequency domain, linear interpolation alone was shown to be the most effective.

With linear interpolation, given two adjacent (time, level) data points, (t₀,l₀) and (t₁,l₁), a straight line that passes through both points is used to connect them. The equation for the straight line that passes through points (t₀,l₀) and (t₁,l₁) is determined as follows using a general two-point equation of the line, so that:

$\left( {y - y_{0}} \right) = {\frac{\left( {y_{1} - y_{0}} \right)}{\left( {x_{1} - x_{0}} \right)}{\left( {x - x_{0}} \right).}}$

Translated to notation used in the present invention:

${\left( {l - l_{0}} \right) = {\frac{l_{1} - l_{0}}{t_{1} - t_{0}}\left( {t - t_{0}} \right)}},{or}$ $l = {l_{0} + {\frac{l_{1} - l_{0}}{t_{1} - t_{0}}{\left( {t - t_{0}} \right).}}}$

The equation for l above is applied to each pair of (time, level) points, and calculated at any desired values for “t” (time) that lie between the pair. The “t” values are equally spaced at an appropriate sampling interval. In the preferred embodiment, the sampling interval is 1/37500 second or, in some instances, 1/50000 second.

Representations of this process are shown in FIGS. 4-9.

For the preferred embodiment prototype, two types of 3rd-order polynomial interpolations were investigated; Lagrange Interpolation, and Catmull-Rom Spline Interpolation. A Lagrange Interpolation is a standard practice and a specific 3rd-order implementation for the preferred embodiment of the invention is as follows.

Given four contiguous (time, level) data points, (t₀,l₀), (t₁,l₁), (t₂,l₂), and (t₃,l₃), there exists a unique 3rd-order polynomial that passes through all four points. Lagrange interpolation computes the value of that polynomial without needing to explicitly compute its coefficients:

$l = {{\frac{\left( {t - t_{1}} \right)\left( {t - t_{2}} \right)\left( {t - t_{3}} \right)}{\left( {t_{0} - t_{1}} \right)\left( {t_{0} - t_{2}} \right)\left( {t_{0} - t_{3}} \right)}l_{0}} + {\frac{\left( {t - t_{0}} \right)\left( {t - t_{2}} \right)\left( {t - t_{3}} \right)}{\left( {t_{1} - t_{0}} \right)\left( {t_{1} - t_{2}} \right)\left( {t_{1} - t_{3}} \right)}l_{1}} + {\frac{\left( {t - t_{0}} \right)\left( {t - t_{1}} \right)\left( t_{t - 3} \right)}{\left( {t_{2} - t_{0}} \right)\left( {t_{2} - t_{1}} \right)\left( {t_{2} - t_{3}} \right)}l_{2}} + {\frac{\left( {t - t_{0}} \right)\left( {t - t_{1}} \right)\left( {t - t_{2}} \right)}{\left( {t_{3} - t_{0}} \right)\left( {t_{3} - t_{1}} \right)\left( {t_{3} - t_{2}} \right)}l_{3}}}$

In the preferred embodiment, the polynomial derived from points (t₀,l₀), (t₁,l₁), (t₂,l₂), and (t₃,l₃) is used only for the “t” (time) values that lie between the center pair of points, (t₁,l₁) and (t₂,l₂). Points (t₀,l₀) and (t₃,l₃) are used only to create the polynomial. After points between (t₁,l₁) and (t₂,l₂) are interpolated, the algorithm advances to the next interval where (t₀,l₀), (t₁,l₁), (t₂,l₂), and (t₃,l₃) are redefined accordingly. The “t” values are equally spaced at an appropriate sampling interval. In the preferred embodiment the sampling interval is 1/37500 second or, again in some instances, 1/50000 second.

Catmull-Rorn interpolation is also a standard technique which differs from Lagrange interpolation in that Catmull-Rom matches values at some points and slopes at some points; whereas, Lagrange interpolation matches only the values at all points. The specific 3rd-order implementation in the preferred embodiment is as follows:

Given four contiguous (time, level) data points, (t₀,l₀), (l₁,l₁), (t₂,l₂), and (t₃,l₃), there exists a unique 3rd-order polynomial that passes through (t₁,l₁) and (t₂,l₂) with a specified slope of the tangent at (t₁,l₁) and an independently specified slope of the tangent at (t₂,l₂).

Using, for example, Ferguson's Parametric Cubic Curves, given two control points P₀ and P₁, and the slopes of tangents P′₀ and P′₁ at each point, one can define a parametric cubic curve that passes through P′₀ and P′₁, with the respective slopes P′₀ and P′₁, by equating the coefficients of the polynomial function

P(t)=a ₀ +a ₁ t−a ₂ t ² ₊ −a ₃ t ³

with the values above, and with

P(0)=a₀

P(1)=a₀+a₁+a₂₊a₃

P′(0)=a₁

P′(1)=a₁+2a_(2,3)a₃

In the context of the present invention, P(0)=(t₁,l₁) and P(1)=(t₂ l₂). The issue then becomes one of finding P′(0) and P′(1). Catmull-Rom splines set the slope at P(n) as a function of P(n+1)−P(n−1), typically

${P^{\prime}(n)} = \frac{{P\left( {n + 1} \right)} - {P\left( {n - 1} \right)}}{2}$

However, this assumes equally spaced data points which does not apply in the preferred embodiment. Instead, in the preferred embodiment the slope P′(n) at point P(n) is computed as the sum of the two adjacent slopes with each being weighted by the proximity of P(n) to the control point on either side, P(n−1) and P(n+1); i.e.,

$\mspace{20mu} {{\frac{{P(n)} - {P\left( {n - 1} \right)}}{{t(n)} - {t\left( {n - 1} \right)}}\mspace{14mu} {and}\mspace{14mu} \frac{{P\left( {n + 1} \right)} - {P(n)}}{{t\left( {n + 1} \right)} - {t(n)}}},\mspace{20mu} {and}}$ ${P^{\prime}(n)} = {\frac{{t\left( {n + l} \right)} - {{t(n)}{P(n)}} - {P\left( {n - l} \right)}}{{t\left( {n + l} \right)} - {{t\left( {n - l} \right)}{t(n)}} - {t\left( {n - l} \right)}} + \frac{{t(n)} - {{t\left( {n - l} \right)}{P\left( {n + l} \right)}} - {P(n)}}{{t\left( {n + l} \right)} - {{t\left( {n - l} \right)}{t\left( {n + l} \right)}} - {t(n)}}}$

In the context of the present invention, P(−l)=(t₀, l₀) and P(2)=(t₃,l₃).

Having found values for P′(0) and P′(1), an interpolation polynomial is determined and interpolated values at points “t” between P(0) and P(1), and equivalently between (ti,l₁) and (t₂,l₂), are computed.

Solving these equations, simultaneously, for a_(o), a₁, a₂ and a₃, results in

a _(o) =P(0)

a ₁ =P′(0)

a ₂=3[P(1)−P(0)]−2P′(0)−P′(1)

a ₃=2[P(0)−P(1)]+P′(0)+P′(1)

Substituting these values into the original polynomial equation and simplifying the equation to isolate the terms with P(0), P(1), P′(0), and P′(1) produces

P(t) = (1 − 3t² + 2t³)P(0) + (3t² − 2t³)P(1) + (t − 2t² + t³)P^(′)(0) + (−t² + t³)P^(′)(1)

which is in a cubic polynomial form. Alternatively, this can be written in a matrix form as

${P(u)} = {\left\lfloor {1\mspace{14mu} t\mspace{14mu} t^{2}\mspace{14mu} t^{3}} \right\rfloor \mspace{14mu} {\begin{matrix} 1 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ {- 3} & 3 & {- 2} & {- 1} \\ 2 & {- 2} & 1 & 1 \end{matrix}}\mspace{14mu} {\begin{matrix} {P(0)} \\ {P(1)} \\ {P^{\prime}(0)} \\ {P^{\prime}(1)} \end{matrix}}}$

After points between (t₁,l₁) and (t₂,l₂) are interpolated, the algorithm advances to the next interval, where P(0), P′(0), P(1), and P′(1) are redefined accordingly. The “t” values are equally spaced at an appropriate sampling interval. In the preferred embodiment this sampling interval is 1/37500 second or, in some instances, 1/50000 second.

In experiments with both polynomial interpolation methods, neither method was found to be consistently superior, so the choice of method is made according to the ease of implementation under the specific circumstances.

A hybrid approach used in a prototype of the preferred embodiment used linear interpolation preferably, but not necessarily, in the center half of the waveform, and 3rd-order polynomials preferably, but not necessarily, in the upper and lower quarters of a waveform WF. This allows the interpolation to follow any sharp transitions that may occur near the zero-crossings of the powerline waveform; while, also allowing the interpolation to reproduce the rounded extremes of the powerline waveform with reasonable fidelity.

With regard to performance, the detection circuitry in legacy TWACS meters such as shown in FIG. 2, includes a 1200 Hz lowpass filter LPF applied to the representation of the powerline waveform. It follows from this that the portion of the TWACS signal of interest lies predominantly in the region below 1200 Hz.

Spectral analysis of recorded powerline waveforms WF showed that a significant TWACS signature is attenuation of harmonic content at odd multiples of half the powerline frequency; that is, 30 Hz, 90 Hz, 150 Hz, etc., in a 60 Hz context. Spectral analysis of the same waveforms after passing through a computer simulation of the detection circuitry in legacy TWACS meters and reconstructed in accordance with the teachings of the present invention showed that linear interpolation performed significantly better than either form of 3rd-order polynomial interpolation at preserving this harmonic signature. In addition, linear interpolation proved better for extracting low-level non-TWACS communications' signals transmitted through the powerline, these signals being received at TWACS' meter locations and reconstructed in accordance with the teachings of the present invention. Any loss of fidelity can be attributed largely to the fact that the original waveform WF was captured with 24-bit ADCs; while, the waveform reconstructed by the present invention was limited to approximately 8-12 bit precision by the combination of the 8-bit DAC and the 1 MHz clock of the legacy TWACS system.

In deciding whether to employ the first or second embodiment of the invention, the first embodiment offers the ability to faithfully follow waveforms that are not monotonically increasing or decreasing. This is necessary if there are signals embedded in a powerline waveform WF as in, for example, powerline communications (PLC), or if there are high-frequency perturbations in the waveform that represent information. The resolution obtainable using the first embodiment is limited to the digital word size of a DAC, and the speed is limited by the combined delays and latencies of all of the elements in the signal chain.

The second embodiment allows for higher sampling frequencies and potentially higher effective resolution. But, this embodiment cannot follow waveforms that are not monotonically increasing or decreasing, so embedded signals or high-frequency perturbations cannot be captured.

In view of the above, it will be seen that the several objects and advantages of the present disclosure have been achieved and other advantageous results have been obtained. 

1. In an electrical meter installed at a facility supplied electrical power by a utility through the utility's electrical distribution system, the meter utilizing a two-way automatic communications system (TWACS) for receiving and processing messages sent from the utility to the facility over the electrical distribution system, the content of a message being comprised of signal elements imposed on electrical waveforms using the TWACS with the waveforms then being propagated through the electrical distribution system from the utility to the facility, the meter at the facility originally detecting the signal elements incorporated in the electrical waveforms by use of a threshold-crossing detection algorithm implemented in the meter to determine the content of the message, the improvement comprising reconfiguring existing components installed in the meter to function as an analog-to-digital converter (ADC) so to facilitate processing of the electrical waveforms at the facility by application of a signal based detection algorithm to thereby improve detection of the signal elements comprising the contents of a TWACS message incorporated in the electrical waveforms by reducing the occurrence of false synchronizations with the message's signal elements and improving the fidelity of message processing so the content of a message is reliably ascertained by the meter, as well as other non-TWACS signals.
 2. The improvement of claim 1 wherein the components of the meter comprise: a microprocessor; a digital-to-analog converter (DAC); a comparator; a clock; and, wherein the microprocessor, DAC, comparator, and clock are reconfigured to function as the analog-to-digital converter (ADC) by which signal elements comprising the contents of a TWACS are detected with sufficient fidelity that the content of the message is reliably ascertained by the meter.
 3. The improvement of claim 2 wherein the meter further includes a buffer and gain control module which receives and processes the waveform, the control module including automatic gain control (AGC) circuitry connected to a filter whose output is provided as an input to the comparator, the AGC ensuring that peak positive and negative extreme values of the waveform, as produced at an output of the filter, fall within a range compatible with an output from the DAC with the DAC reconfigured such that its range of output values is now less than the output values of the filter for the respective positive and negative extreme values of the waveform whereby the value of an output from the DAC, when an input thereto is a minimum digital value, is greater than the filter's output when the waveform is at a negative peak value, and the value of an output from the DAC, when an input thereto is at a maximum digital value, is less than the filter's output when the waveform is at a positive peak value.
 4. The improvement of claim 3 wherein the microprocessor supplies, as an output, a digital word whose contents correspond to a desired voltage level the crossing of which by the waveform is to be detected, the DAC converting the word to a voltage level supplied to a reference input of the comparator with the comparator comparing the voltage level supplied from the filter against the reference voltage level supplied by the DAC and providing a first logic output if the voltage level input from the filter is greater than the reference voltage level supplied by the DAC, but a second logic level when the voltage level input from the filter becomes less than the reference voltage level supplied by the DAC, this change from a greater to a lesser voltage value, and vice versa, each representing a threshold crossing by the waveform.
 5. The improvement of claim 4 wherein the meter further includes a clock and the microprocessor includes a counter whose count value increments in response to pulses received from the clock; the microprocessor, by comparing counter values of the counter between various threshold crossings, determining an elapsed time between threshold crossings.
 6. The improvement of claim 5 further including a heuristic algorithm applied by the microprocessor to the elapsed time value between crossings to detect the presence of TWACS message signal elements.
 7. The improvement of claim 2 further including performing a linear interpolation on processed TWACS signals for extracting and reconstructing non-TWACS communications' signals transmitted through the powerline and received at TWACS' meter locations.
 8. An electrical meter installed at a facility supplied electrical power by a utility's electrical distribution system, the meter utilizing a two-way automatic communications system (TWACS) for receiving and processing messages sent from the utility to the facility over the electrical distribution system, the content of a message being comprised of signal elements imposed on electrical waveforms using the TWACS with the waveforms then being propagated through the electrical distribution system from the utility to the facility, the meter at the facility originally detecting the signal elements incorporated in the electrical waveforms by use of a threshold-crossing detection algorithm implemented in the meter to determine the content of the message, the meter comprising: a microprocessor; a digital-to-analog converter (DAC); a comparator; a clock; and, wherein the microprocessor, DAC, comparator, and clock are reconfigured to function as an analog-to-digital converter (ADC) by which signal elements of the messages incorporated in electrical waveforms propagated through the electrical distribution system using the TWACS are detected with sufficient fidelity that a content of a message is reliably ascertained by the meter, as well as detecting non-TWACS signals.
 9. The meter of claim 8 further including a buffer and gain control module which receives and processes the waveform, the control module including automatic gain control (AGC) circuitry connected to a filter whose output is provided as an input to the comparator, the AGC ensuring that peak positive and negative extreme values of the waveform, as produced at an output of the filter, fall within a range compatible with an output from the DAC with the DAC reconfigured such that its range of output values is now less than the output values of the filter for the respective positive and negative extreme values of the waveform whereby the value of an output from the DAC, when an input thereto is a minimum digital value, is greater than the filter's output when the waveform is at a negative peak value, and the value of an output from the DAC, when an input thereto is at a maximum digital value, is less than the filter's output when the waveform is at a positive peak value.
 10. The meter of claim 9 wherein the microprocessor supplies, as an output, a digital word whose contents correspond to a desired voltage level the crossing of which by the waveform is to be detected, the DAC converting the word to a voltage level supplied to a reference input of the comparator with the comparator comparing the voltage level supplied from the filter against the reference voltage level supplied by the DAC and providing a first logic output if the voltage level input from the filter is greater than the reference voltage level supplied by the DAC, but a second logic level when the voltage level input from the filter becomes less than the reference voltage level supplied by the DAC, this change from a greater to a lesser voltage value, and vice versa, each representing a threshold crossing by the waveform.
 11. The meter of claim 10 further including a clock, and the microprocessor including a counter whose count value increments in response to pulses received from the clock; the microprocessor, by comparing counter values of the counter between various threshold crossings, determining an elapsed time between threshold crossings.
 12. The meter of claim 11 further including a heuristic algorithm applied by the microprocessor to the elapsed time value between crossings to detect the presence of TWACS signal elements.
 13. The meter of claim 9 further including performing a linear interpolation on processed TWACS signals for extracting and reconstructing non-TWACS communications' signals transmitted through the powerline and received at TWACS' meter locations.
 14. A method of detection of signal elements incorporated in an electrical waveform propagated through an electrical distribution system using a two-way automated communications system (TWACS), the signal elements forming the contents of a message sent from the utility to a facility supplied electrical power by the utility through the electrical distribution system and received by an electrical meter installed at the facility, the method comprising: reconfiguring existing components installed in the meter to function as an analog-to-digital (ADC) converter so to facilitate processing of the electrical waveforms by application of a signal based detection algorithm and improve detection of signal elements comprising a message thereby reducing the occurrence of a false synchronization with the signal elements for the content of a message to be reliably ascertained by the meter.
 15. The method of claim 14 wherein the meter comprises a microprocessor, a digital-to-analog converter (DAC), a comparator, and a clock which, in combination, are configured to function as an analog-to-digital converter (ADC) by which signal elements of the messages incorporated in electrical waveforms propagated through the electrical distribution system using the TWACS are detected with sufficient fidelity that a content of a message is reliably ascertained by the meter.
 16. The improvement of claim 15 wherein the meter further includes a buffer and gain control module which receives and processes the waveform, the control module including automatic gain control (AGC) circuitry connected to a lowpass filter whose output is provided as an input to the comparator, the AGC ensuring that peak positive and negative extreme values of the waveform, as produced at an output of the filter, fall within a range compatible with an output from the DAC, the method including reconfiguring the DAC such that its range of output values is now less than the output values of the filter for the respective positive and negative extreme values of the waveform whereby the value of an output from the DAC, when an input thereto is a minimum digital value, is greater than the filter's output when the waveform is at a negative peak value, and the value of an output from the DAC, when an input thereto is at a maximum digital value, is less than the filter's output when the waveform is at a positive peak value.
 17. The method of claim 15 wherein the meter further includes a buffer and gain control module which receives and processes the waveform, the control module including automatic gain control (AGC) circuitry connected to a lowpass filter whose output is provided as an input to the comparator, and the method includes: the microprocessor selecting a starting value for a digital word output supplied by the microprocessor as an input of the DAC; the DAC, in response to the input from the microprocessor, establishing an output value which is provided to a voltage reference input of the comparator, and wherein, if the output of the comparator is a logic “zero”, indicating that the waveform representation value corresponding to the output from the filter is less than the voltage reference input provided by the DAC, the microprocessor waits until the waveform representation exceeds the voltage reference input provided by the DAC, at which time the output of the comparator transitions to a logic “one”, and records the counter value at the time of transition, increments the value of the digital word it sends to the DAC, and waits for the next transition of the comparator's output from a logic “zero” to a logic “one”; but, if the initial output of comparator is a logic “one”, indicating the waveform representation value corresponding to the output from the filter is greater than the voltage reference input provided by the DAC, the microprocessor repeatedly increments the value of the digital word it sends to the DAC until such time as the output of the DAC becomes greater than the waveform representation value and the output of the comparator becomes a logic “zero”, at which time the microprocessor records the counter value at the time of the transition, increments the value of the digital word it sends to the DAC, and waits for the next transition of the comparator's output.
 18. The method of claim 17 in which the counter value at each transition by the comparator represents time, and the input to the comparator from the output of the filter represents a voltage level, whereby for each transition a pair of values representing time versus level are generated, and the method further includes using a mathematical interpolation to convert the time versus level values to level versus time values so to produce a level versus time waveform to which signal-based analysis techniques are employed.
 19. The method of claim 18 wherein the signal-based analysis techniques employed include one or more of: polynomial interpolation including linear interpolation; spline interpolation; sinc interpolation; trigonometric interpolation; and filtering.
 20. The method of claim 17 further including performing an interpolation on processed powerline waveforms for extracting and reconstructing non-TWACS communications' signals transmitted through the powerline and received at TWACS' meter locations
 21. The method of claim 18 wherein the signal-based analysis techniques employed further include a hybrid interpolation utilizing 3rd-order polynomial interpolations near extreme values of the waveforms and linear interpolation near zero value crossings of the waveform.
 22. The method of claim 20 in which the polynomial interpolation include one or more of Lagrange interpolation and Catmull-Rom spline interpolation and linear interpolation. 